#pragma once
#include <vector>
#include "mesh.h"
#include "types.h"

class surface_line {
    friend class mesh;
    std::vector<std::pair<float,segment> > segments;
    public:
    surface_line(mesh& m, int face_id, float angle, float u, float v, float max_length, int max_segments);
    uv uv_at(float d);
    uv st_at(const mesh& coarse, const uv& uv);
    uv st_at(const mesh& coarse, float d);
};
